import { DEFAULT_LAYOUT } from '@/router/constans';

export default {
  path: '/dashboard',
  name: 'Dashboard',
  redirect: { name: 'DashboardWorkplace' },
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '首页',
    requiresAuth: true,
    order: 0,
    hideChildrenInMenu: true,
    iconfont: 'icon-shouye',
  },
  children: [
    {
      path: 'workplace',
      name: 'DashboardWorkplace',
      component: () => import('@/views/dashboard/workplace/index.vue'),
      meta: {
        locale: '大屏',
        requiresAuth: true,
        permission: 'dashboard:workplace',
      },
    },
    {
      path: 'real-time/:id?/:name?',
      name: 'DashboardRealTime',
      component: () => import('@/views/dashboard/real-time/index.vue'),
      meta: {
        locale: '实时信息',
        requiresAuth: true,
        hideInMenu: true,
      },
    },
  ],
};
